﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsTest.SysManager
{
    public partial class ParamsManager : MainTabUserContorl
    {
        string[][] initData = new string[][] { new string[] { "公司名称", "XXX公司", "","" }, new string[] { "公司抬头", "XXX股份有限公司","" ,"用于打印发票等" }, new string[] { "联系电话", "0755-5688898","","" }, new string[] { "公司地址", "深圳市福田区车公庙云松大厦","", "" } };


        public ParamsManager()
        {
            InitializeComponent();

            this.treeView1.ExpandAll();


            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }

            }
        }

        private void button5_Click(object sender, EventArgs e)
        {
            this.splitContainer3.Panel2Collapsed = false;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.splitContainer3.Panel2Collapsed = true;
        }

        private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button10_Click(object sender, EventArgs e)
        {
            this.splitContainer3.Panel2Collapsed = false;
        }
    }
}
